<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<% String path = request.getContextPath();
 	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
 			+ path + "/";%>
<nav class="navbar navbar-static-top" role="navigation"style="margin-bottom: 0; background-color: white;">
	<div class="navbar-header" style="height:60px">
          <!-- <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i
                  class="fa fa-bars"></i> </a> -->
                  <div class="form-group minimalize-styl-2" style="margin-left: 9px; margin-top: 8px;">
                      <div class="input-group" style="width: 50px;">
                          <div class="input-group-btn">
                              <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button" style="border-radius: 3px;"><i class="fa fa-bars"></i>  &nbsp;全部</button>
                              <ul class="dropdown-menu">
                                  <li><a href="#">Action</a></li>
                                  <li><a href="#">Another action</a></li>
                                  <li><a href="#">Something else here</a></li>
                                  
                              </ul>
                          </div>
                      </div>
                  </div>
          <!--搜索框  -->
          <form role="search" class="navbar-form-custom" action="search_results.html">
              <div class="form-group">
                  <input type="text" placeholder="数据搜索关键词..." class="form-control"
                      name="top-search" id="top-search">
              </div>
          </form>
      </div>
	<!-- nav2 end -->
	<!-- user set start -->
	<ul class="nav navbar-top-links navbar-right">

		<li>
			<span class="dropdown profile-element">
				<a data-toggle="dropdown" class="dropdown-toggle" href="#" style="color: #999c9e; font-weight: 600" id="contactByWX">
					<i class="fa">
						<svg t="1645610559794" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2257" width="12" height="12.22"><path d="M811.564138 419.663448a46.830345 46.830345 0 0 0-45.550345 46.830345c0 22.510345 21.715862 43.078621 45.550345 43.078621 29.395862 0 54.201379-19.729655 54.201379-43.078621 0-26.262069-23.790345-46.830345-54.201379-46.830345z m0 67.84c-13.241379 0-23.481379-11.52-23.481379-21.009655a24.496552 24.496552 0 0 1 23.481379-24.761379c18.008276 0 32.132414 10.857931 32.132414 24.761379 0 9.710345-13.903448 21.009655-32.132414 21.009655zM617.931034 419.663448c-24.275862 0-45.594483 22.068966-45.594482 46.830345 0 22.068966 22.068966 43.078621 45.594482 43.078621 30.543448 0 55.393103-19.332414 55.393104-43.078621 0.044138-26.703448-23.746207-46.830345-55.393104-46.830345z m0 67.84c-11.211034 0-23.525517-10.990345-23.525517-21.009655a25.467586 25.467586 0 0 1 23.525517-24.761379c19.023448 0 33.324138 10.637241 33.324138 24.761379 0.044138 8.73931-12.623448 21.009655-33.324138 21.009655z" fill="#000000" p-id="2258"></path><path d="M1022.366897 544.176552c0-66.206897-29.969655-130.295172-84.391725-179.950345a331.608276 331.608276 0 0 0-187.93931-83.067586C725.186207 126.234483 577.50069 9.931034 395.034483 3.089655c-4.413793 0-10.46069-0.353103-16.551724-0.353103C174.212414 2.913103 1.633103 151.172414 1.633103 326.62069c0 93.881379 56.496552 168.077241 108.049656 216.275862C41.313103 591.668966 2.206897 661.53931 2.206897 735.955862c0 69.34069 40.518621 138.01931 114.317241 194.206897l-21.406897 77.064827a11.034483 11.034483 0 0 0 10.813793 13.859311c1.906759 0 3.778207-0.503172 5.428966-1.456552l85.406897-48.286897c7.282759 1.544828 14.609655 3.266207 21.76 4.943449 13.241379 3.089655 26.482759 6.267586 40.209655 8.562758a219.497931 219.497931 0 0 0 36.943448 3.442759c71.503448 0 140.093793-22.068966 193.147586-62.411035 48.551724-36.987586 81.566897-86.995862 93.66069-142.035862a351.911724 351.911724 0 0 0 131.84 25.379311 229.517241 229.517241 0 0 0 38.797241-3.619311c14.212414-2.383448 28.468966-5.737931 42.284138-8.827586 7.591724-1.809655 15.404138-3.61931 23.172414-5.296552l90.085517 50.979311a11.034483 11.034483 0 1 0 16.066207-12.535173l-22.642759-81.522758c77.771034-59.10069 120.275862-131.354483 120.275863-204.226207zM23.702069 326.62069c0-163.531034 162.471724-301.682759 354.78069-301.682759 5.737931 0 11.431724 0 15.713103 0.353103 169.842759 6.223448 307.597241 112.198621 333.241379 254.057932-9.268966-0.397241-18.052414-0.308966-26.791724 0-5.075862 0-10.24 0.485517-15.271724 0.882758-9.975172 0.794483-20.038621 1.986207-29.837241 3.61931-5.252414 0.838621-10.857931 1.942069-17.213793 3.310345a343.671172 343.671172 0 0 0-39.238621 10.902069c-8.827586 3.045517-17.655172 6.532414-26.482759 10.328276-8.827586 3.795862-16.86069 7.944828-24.937931 12.402759-4.016552 2.251034-8.033103 4.413793-11.873103 6.929655-2.824828 1.721379-5.693793 3.575172-8.827586 5.517241-2.913103 1.942069-5.914483 4.016552-8.827587 6.267587a299.211034 299.211034 0 0 0-25.335172 20.215172 287.735172 287.735172 0 0 0-21.097931 21.053793c-2.206897 2.427586-4.413793 4.89931-6.4 7.371035-2.78069 3.310345-5.517241 6.753103-8.165517 10.24a257.853793 257.853793 0 0 0-21.053793 32.750344c-1.721379 3.133793-3.354483 6.355862-4.899311 9.577931l-1.456551 3.133793c-1.015172 2.206897-2.030345 4.413793-3.00138 6.62069-0.529655 1.235862-1.05931 2.471724-1.544827 3.751724-0.838621 2.030345-1.677241 4.104828-2.471724 6.179311l-1.456552 3.928275c-0.750345 2.118621-1.456552 4.413793-2.162759 6.4-0.441379 1.235862-0.838621 2.427586-1.235862 3.663449-0.750345 2.56-1.50069 5.12-2.206896 7.68 0 0.838621-0.485517 1.677241-0.706207 2.515862-0.882759 3.354483-1.677241 6.753103-2.383449 10.107586-0.22069 1.05931-0.397241 2.118621-0.617931 3.177931-0.397241 1.897931-0.794483 3.795862-1.103448 5.693793a331.034483 331.034483 0 0 0-102.311724-19.862069c-4.413793 0-8.518621-0.264828-12.844138-0.264827a324.943448 324.943448 0 0 0-166.885517 46.609655C79.448276 485.517241 23.702069 414.896552 23.702069 326.62069zM295.724138 966.223448a199.68 199.68 0 0 1-33.28-3.133793c-12.844138-2.162759-25.467586-5.12-38.841379-8.253793-8.562759-2.030345-17.655172-4.104828-26.482759-5.958621a11.078621 11.078621 0 0 0-7.68 1.191725L123.586207 987.321379l16.242759-58.65931a11.034483 11.034483 0 0 0-4.104828-11.873103c-41.622069-30.455172-111.404138-94.455172-111.404138-180.965518 0-69.693793 38.4-135.371034 105.401379-180.215172l3.707587-2.427586A301.903448 301.903448 0 0 1 295.724138 505.732414c4.016552 0 8.033103 0 12.005517 0.264827a306.228966 306.228966 0 0 1 107.74069 23.348966c92.689655 38.797241 150.068966 117.98069 150.068965 206.609655a205.462069 205.462069 0 0 1-2.427586 30.896552c-17.787586 115.464828-130.33931 199.371034-267.387586 199.371034z m587.034483-231.194482a11.122759 11.122759 0 0 0-4.148966 11.873103l17.655173 63.073103-70.62069-39.724138a10.902069 10.902069 0 0 0-5.428966-1.456551 12.976552 12.976552 0 0 0-2.251034 0c-9.357241 1.942069-18.714483 4.148966-27.762759 6.267586-14.08 3.310345-27.409655 6.444138-40.915862 8.827586a209.169655 209.169655 0 0 1-35.310345 3.310345 329.004138 329.004138 0 0 1-128-25.511724 222.675862 222.675862 0 0 0 1.544828-25.688276c0-95.161379-59.542069-180.171034-155.983448-223.602759v-1.147586l0.662069-3.884138c0.353103-1.942069 0.706207-3.884138 1.103448-5.826207 0.397241-1.942069 0.573793-2.692414 0.882759-4.016551 0.308966-1.324138 0.838621-3.707586 1.324138-5.56138l1.05931-4.060689 1.588965-5.473104 1.235862-4.016552c0.617931-1.809655 1.235862-3.61931 1.897931-5.428965 0.662069-1.809655 0.882759-2.604138 1.368276-3.928276 0.485517-1.324138 1.456552-3.707586 2.251035-5.561379 0.485517-1.191724 0.926897-2.427586 1.456552-3.619311 0.882759-2.030345 1.809655-4.06069 2.736551-6.046896l1.412414-3.045517c1.456552-3.001379 2.957241-5.958621 4.413793-8.827587a236.976552 236.976552 0 0 1 19.244138-29.881379c2.427586-3.222069 4.943448-6.355862 7.45931-9.401379a257.191724 257.191724 0 0 1 25.953104-26.306207c2.824828-2.515862 5.826207-5.031724 8.827586-7.591724 4.413793-3.707586 9.401379-7.415172 14.521379-11.078621l1.897931-1.324138c5.252414-3.663448 10.107586-6.929655 14.742069-9.798621 3.61931-2.206897 7.282759-4.413793 11.034483-6.4a299.264 299.264 0 0 1 47.801379-21.230344c4.413793-1.588966 9.533793-3.133793 15.58069-4.855173 7.017931-2.030345 14.08-3.795862 21.142069-5.340689l4.413793-0.882759c4.413793-0.882759 8.121379-1.588966 11.784828-2.206897 9.18069-1.50069 18.626207-2.648276 27.983448-3.39862 4.766897-0.353103 9.577931-0.617931 14.344828-0.794483 8.033103-0.308966 16.198621-0.308966 24.231724 0h1.324138c4.179862 0.176552 8.372966 0.441379 12.57931 0.794483 143.757241 11.652414 260.722759 120.187586 260.722759 241.92-0.22069 91.144828-73.886897 158.72-117.76 190.852414z" fill="#000000" p-id="2259"></path><path d="M258.56 281.511724c28.027586 0 53.53931-24.055172 53.53931-50.493793 0.03531-29.832828-23.719724-54.249931-53.53931-55.04-35.972414 0-64.132414 24.187586-64.132414 55.04 0 27.365517 29.351724 50.493793 64.132414 50.493793z m0-83.464827a32.662069 32.662069 0 0 1 31.470345 32.971034c0 12.888276-14.035862 28.424828-31.470345 28.424828-24.055172 0-42.063448-15.006897-42.063448-28.424828 0-18.493793 18.493793-32.971034 42.063448-32.971034zM496.904828 281.511724c27.497931 0 53.53931-24.54069 53.53931-50.493793 0-29.307586-25.026207-55.04-53.53931-55.04-37.473103 0-65.677241 23.657931-65.677242 55.04 0 27.851034 29.44 50.493793 65.677242 50.493793z m0-83.464827a33.942069 33.942069 0 0 1 31.470344 32.971034c0 13.550345-16.463448 28.424828-31.470344 28.424828-25.732414 0-43.608276-14.962759-43.608276-28.424828 0-18.802759 18.97931-32.971034 43.608276-32.971034zM386.868966 617.18069c-30.322759 0-53.230345 19.332414-53.230345 44.976551 0 22.907586 23.878621 41.489655 53.230345 41.489656 22.510345 0 43.828966-20.171034 43.828965-41.489656a45.550345 45.550345 0 0 0-43.828965-44.976551z m0 64.397241c-19.288276 0-31.161379-11.29931-31.16138-19.42069 0-13.241379 13.241379-22.907586 31.16138-22.907586a23.569655 23.569655 0 0 1 21.76 22.907586c0 9.092414-11.387586 19.42069-21.76 19.42069zM203.034483 617.18069c-29.131034 0-51.994483 19.773793-51.994483 44.976551 0 22.510345 23.790345 41.489655 51.994483 41.489656 22.951724 0 43.873103-19.773793 43.873103-41.489656A45.02069 45.02069 0 0 0 203.034483 617.18069z m0 64.397241c-18.273103 0-29.925517-11.475862-29.925517-19.42069 0-12.844138 13.241379-22.907586 29.925517-22.907586a22.686897 22.686897 0 0 1 21.715862 22.819311c0 8.827586-10.063448 19.508966-21.715862 19.508965z" fill="#000000" p-id="2260"></path></svg>
					</i>
					&nbsp;&nbsp;联系我们
				</a>
			</span>
		</li>

		<li>
			<span class="dropdown profile-element">
				<a data-toggle="dropdown" class="dropdown-toggle" href="#" style="color: #999c9e; font-weight: 600" id="gitee">
					<i class="fa">
						<svg t="1645517814394" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6372" width="11" height="12.22"><path d="M978.467145 409.613653H455.100998v0.011378A45.5101 45.5101 0 0 0 409.590898 455.123753l-0.04551 113.775249a45.5101 45.5101 0 0 0 45.5101 45.521478L773.671696 614.409102a45.5101 45.5101 0 0 1 45.5101 45.5101v22.75505c0 75.398858-61.131442 136.530299-136.530299 136.530299H250.271416a45.5101 45.5101 0 0 1-45.5101-45.5101V341.348503h-0.011377c0-75.398858 61.120064-136.530299 136.530299-136.530299h637.061754v-0.022755a45.5101 45.5101 0 0 0 45.5101-45.487345l0.102398-113.775249H1023.977245a45.5101 45.5101 0 0 0-45.5101-45.532855L341.325748 0.022755C152.822915 0.022755 0 152.84567 0 341.348503v637.141397a45.5101 45.5101 0 0 0 45.5101 45.5101h671.273971c169.661652 0 307.193173-137.531522 307.193174-307.193173V455.123753a45.5101 45.5101 0 0 0-45.5101-45.5101z" p-id="6373"></path></svg>
					</i>
					&nbsp;&nbsp;源码 </a>
			</span>
		</li>

		<li><span class="dropdown profile-element"> 
		<a data-toggle="dropdown" class="dropdown-toggle" href="#" style="color: #999c9e; font-weight: 600"> 
			<i class="fa fa-user"></i>&nbsp;&nbsp;个人中心 </a>
		<ul class="dropdown-menu animated fadeInRight m-t-xs" style="float: right; margin-top: 2em; margin-right: -7.4em;">
					<li><a
						href="${pageContext.request.contextPath}/toupdatePassword"><i
							class="fa fa-unlock-alt"></i>&nbsp;&nbsp;修改密码</a></li>
			</ul>
		</span>
		</li>

		<li><a href="/spider-factory/exit"> <i class="fa fa-sign-out"></i>退出
		</a></li>
	</ul>
	<!-- user set end -->
</nav>



	
        
    <!-- Mainly scripts -->
    <script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
   	<script src="${pageContext.request.contextPath }/js/plugins/toastr/toastr.min.js"></script>
    <script>
		var contactByWX = document.getElementById("contactByWX");
		contactByWX.onclick = function(){
			window.location.href = "${pageContext.request.contextPath}/contactByWX";
		}

		var gitee = document.getElementById("gitee");
		// 跳转到gitee源码
		gitee.onclick = function(){
			window.open("https://gitee.com/stonedtx/yuqing-spider");
		};

	    $(document).on('focus',"#searchBars",function(){//跳转点击事件
	    	$('#searchBars').addClass('focus');
	    });
	    $(document).on('blur',"#searchBars",function(){//跳转点击事件
	    	$('#searchBars').removeClass('focus');
	    });
	    
	    function checkForm(){
	    	var searchName = $("#searchName").val()
	    	
	    	if(!searchName){
	    		toastr.error('搜索条件不可为空');
	    		return;
	    	}else{
	    	searchName = searchName.trim()
	    		console.log("输出:"+searchName+".")
	    		if(searchName == ""){
	    			toastr.error('搜索条件不可为空');
		    		return;
	    		}
	    	}
	    	window.location.href = "${pageContext.request.contextPath}/searchResults?searchName=" +searchName;
	    }
	    $('#searchName').keydown(function(){
	         if (event.keyCode == 13) {    
	        	 var searchName = $("#searchName").val()
	 	    	
	 	    	if(!searchName){
	 	    		toastr.error('搜索条件不可为空');
	 	    		return;
	 	    	}else{
	 	    	searchName = searchName.trim()
	 	    		console.log("输出:"+searchName+".")
	 	    		if(searchName == ""){
	 	    			toastr.error('搜索条件不可为空');
	 		    		return;
	 	    		}
	 	    	}
	 	    	window.location.href = "${pageContext.request.contextPath}/searchResults?searchName=" +searchName;
	         };            
	         
	     });
    </script>
